package com.zkr.thresho.service;

import com.zkr.thresho.model.*;
import com.zkr.util.ResultVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.util.List;

/**
 * Created by lenovo on 2020/12/11.
 */
public interface ThreshoService {


    ResultVo queryPage(ThreshoSelectVo threshoSelectVo);

    ResultVo queryLegalPersonById(Integer userid);

    ResultVo querySubClass();

    //ResultVo add(@Valid ThreshoAddVo threshoAddVo);


    ResultVo add(@Valid List<ThreshoAddVo> threshoAddVoList);

    ResultVo queryLagalSaper(LagalSpareVo lagalSpareVo);

    ResultVo querySpare(SpareSelectVo spareSelectVo);

    ResultVo update(@Valid ThreshoUpdateVo threshoUpdateVo);

    ResultVo importFile(MultipartFile file) throws Exception;


    ResultVo exportFile(ThreshoSelectVo threshoSelectVo, HttpServletResponse response)throws Exception;
}
